import { Layout } from '@fl/utils/routerHelper'

const activityManage: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/pages/marketing-promotion/activity-manage/coupon-manage/index.vue'),
            meta: {
                icon: 'i-mingcute:coupon-line',
                title: '优惠券管理',
            },
            name: 'coupon-manage',
            path: 'coupon-manage',
        },
        {
            component: () => import('@/pages/marketing-promotion/activity-manage/coupon-manage/detail.vue'),
            meta: {
                activeMenu: '/marketing-promotion/activity-manage/coupon-manage',
                hidden: true,
                noTagsView: true,
                title: '新增/编辑优惠券',
            },
            name: 'coupon-manage-detail',
            path: 'coupon/:type/:id',
        },
        {
            component: () => import('@/pages/marketing-promotion/activity-manage/discount-manage/index.vue'),
            meta: {
                icon: 'i-ic:outline-discount',
                title: '折扣券管理',
            },
            name: 'discount-manage',
            path: 'discount-manage',
        },
        {
            component: () => import('@/pages/marketing-promotion/activity-manage/discount-manage/detail.vue'),
            meta: {
                activeMenu: '/marketing-promotion/activity-manage/discount-manage',
                hidden: true,
                noTagsView: true,
                title: '新增/编辑优惠券',
            },
            name: 'discount-manage-detail',
            path: 'discount/:type/:id',
        },
        {
            component: () => import('@/pages/marketing-promotion/activity-manage/activity-management/index.vue'),
            meta: {
                icon: 'i-material-symbols-light:browse-activity-outline-rounded',
                title: '活动管理',
            },
            name: 'activity-manage-activity-management',
            path: 'activity-management',
        },
        {
            component: () => import('@/pages/marketing-promotion/activity-manage/activity-management/components/add-or-edit.vue'),
            meta: {
                activeMenu: '/marketing-promotion/activity-manage/activity-management',
                hidden: true,
                noTagsView: true,
                title: '活动管理-新增/编辑',
            },
            name: 'activity-manage-activity-add-or-edit',
            path: 'activity-add-or-edit',
        },
        {
            component: () => import('@/pages/marketing-promotion/qualification-ticket/index.vue'),
            meta: {
                icon: 'i-material-symbols-light:browse-activity-outline-rounded',
                title: '新房资格券',
            },
            name: 'activity-manage-qualification-ticket',
            path: 'qualification-ticket',
        },
        {
            component: () => import('@/pages/marketing-promotion/qualification-ticket/components/add-or-edit.vue'),
            meta: {
                activeMenu: '/marketing-promotion/qualification-ticket',
                hidden: true,
                noTagsView: true,
                title: '新房资格券-新增/编辑',
            },
            name: 'qualification-ticket-add-or-edit',
            path: 'qualification-ticket-add-or-edit',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        icon: 'i-material-symbols-light:browse-activity-outline-rounded',
        title: '活动优惠',
    },
    name: 'activity-manage',
    path: 'activity-manage',
}

export default activityManage
